package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.AdjustmentMedicine;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AdjustmentMedicineMapper {



    //分页查所有药
    List<AdjustmentMedicine> selectAll(@Param("pageIndex") Integer pageIndex,
                                       @Param("pageSize") Integer pageSize,Integer smid);
    //查询所有条数
    int selectcount(Integer smid);
    //增加药品
    void insertmessage(Integer number, String name, String medicinespecs, Integer count, Double purchase, Double retail, Double newretail, Date date,Integer smid);
    //通过Id查信息
    AdjustmentMedicine selectById(int tmid);
    //查询编号
    List<AdjustmentMedicine> SelctNumber(String name);
    //通过SMID查询编号
    List<AdjustmentMedicine> SelectNumberBysmid(Integer smid);

        //修改状态
    void update(Integer tmid);

}
